package com.ls.utils;

import org.apache.commons.lang3.RandomStringUtils;

import java.util.Date;

/**
 * <p>
 * ID生成工具
 * </p>
 *
 * @author TangQuanBin
 * @since 2019/10/9 10:11
 */
public class IdGeneratorUtil {

    /**
     * ID生成
     * @return
     */
    public static String generatorOrderId(){
        String time = DateTimeUtil.formatDateToString(new Date(),"yyyyMMddHHmmss");
        String randow = RandomStringUtils.randomNumeric(8);
        return time + randow;
    }

}
